package com.common.servlet.interfaces;

import java.io.InputStream;

import com.common.model.abstracts.AbstractRequest;
import com.common.model.abstracts.AbstractResponse;
import com.common.security.abstracts.AbstractError;
import com.common.security.exceptions.HTTPException;
import com.common.security.exceptions.ParserException;

public interface IParser {

	public String parseError(AbstractError error);
	
	public AbstractRequest parseRequest(InputStream stream) throws HTTPException, ParserException;
	
	public String parseResponse(AbstractResponse abstractResponse) throws ParserException;
}
